package com.zito.bean;

import javax.validation.groups.Default;


import com.downlove.validation.notnull.NotNull;
import com.downlove.validation.strlength.CheckLength;
import com.zito.pojo.AdminPOJO;

public class Admin extends AdminPOJO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8539804271690999544L;
	private Long id;
	@NotNull(message = "用户名不能为空", groups = { Default.class })
	@CheckLength(message = "用户名字符长度不能小于4个字符，不能大于20个字符，一个中文为2个字符", min = 4, max = 20, groups = { Default.class })
	private String uname;
	@NotNull(message = "密码不能为空", groups = { Default.class })
	@CheckLength(message = "密码长度不能小于6个字符，不能大于10个字符", min = 6, max = 10, groups = { Default.class })
	private String upass;
	private int type;
	
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getUname() {
		return uname;
	}

	public void setUpass(String upass) {
		this.upass = upass;
	}

	public String getUpass() {
		return upass;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
